﻿@model S4Store.Models.AfterSaleCarKPI.ServiceAdvisorListModel
@{
    ViewBag.Title = "MonthConfig";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@{int i = 0;}
<form class="pageForm addpage" action="@Url.Action("ModifyBackInputServiceAdvisorDayInput")" method="post">
<div style="height: 100%; width: 100%; overflow: hidden" class="verticalSplitContainer">
    <div class="" style="overflow: auto;" ratio="#150">
         <table  class="rpttable"  style="border-collapse:collapse;">
            <tr height="90"  class="vtr">
               <th class="yellow" ><div class="wd40 pd510"><div class="wd20">售后前台接待姓名</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">A卡转 C 卡</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">新增六个月未回厂台次</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">新增四个月未回厂台次</div></div>
                </th>
               <th class="yellow" ><div class="wd30 pd510"><div class="wd20">事故入厂台次</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">维修入厂台次</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">事故车产值(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">维修产值(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">实施5K保养数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">实施10K保养数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">电话招徕客户数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">电话成功预约回厂数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">实现预约回厂数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">准时交车客户数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">当日交车客户数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">累计用品销售额(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">累计养护产品销售额(万)</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">首次续保实际完成台次</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">二次续保实际完成台次</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">流失客户重新回厂数</div></div>
                </th>
                <th class="yellow" ><div class="wd30 pd510"><div class="wd20">满意度回访平均得分</div></div>
                </th>
            </tr>
</table>
</div>
<div class="" style="overflow: auto;" ratio="*">
 <table  class="rpttable"  style="border-collapse:collapse;">
            @foreach (var employee in Model.Employees)
            {
                var item = Model.DayInputs.Where(o => o.EmployeeId == employee.Id).FirstOrDefault();
                if (item == null)
                {
                    item = new S4Store.Domain.AfterSaleKpi.AfterSaleServiceAdvisorDayInput();
                }
                <tr>
                    <td><div class="wd40 pd510">@employee.Name<input type="hidden" name="afterSaleCarlist[@i].EmployeeId" value="@employee.Id" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].BYAKZCKKHS_ACard2CCard" value="@item.BYAKZCKKHS_ACard2CCard" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].XZLGYWHCS" value="@item.XZLGYWHCS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].XZSGYWHCS" value="@item.XZSGYWHCS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SGRCTC_AccidentToFactory" value="@item.SGRCTC_AccidentToFactory" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].WXRCTC_MaintentceToFactory" value="@item.WXRCTC_MaintentceToFactory" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SGCCZ_AccidentCarValue" value="@item.SGCCZ_AccidentCarValue" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].WXCZ_MaintenceValue" value="@item.WXCZ_MaintenceValue" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SSWQBYS_5KMaintenceNum" value="@item.SSWQBYS_5KMaintenceNum" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SSSQBYS_10KMaintenceNum" value="@item.SSSQBYS_10KMaintenceNum" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].DHZLKHS_InviteByTelNum" value="@item.DHZLKHS_InviteByTelNum" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].DHCGYYHCS" value="@item.DHCGYYHCS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SXYYHCS" value="@item.SXYYHCS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].ZSJCKHS" value="@item.ZSJCKHS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].DRJCKHS" value="@item.DRJCKHS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LJJPXSE" value="@item.LJJPXSE" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LJYHCPXSE" value="@item.LJYHCPXSE" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].SCXBSJWCTC" value="@item.SCXBSJWCTC" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].ECXBSJWCTC" value="@item.ECXBSJWCTC" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].LSKHCXHCS" value="@item.LSKHCXHCS" /></div>
                    </td>
                    <td><div class="wd30 pd510">
                        <input type="text" class="w30 ipt numberinput" name="afterSaleCarlist[@i].MYDHFPJDF" value="@item.MYDHFPJDF" /></div>
                    </td>
                    
                </tr>
               i++;
            }
        </table>
    </div>
    <input type="hidden" name="y" value="@Model.Date.Year" /> <input type="hidden" name="m" value="@Model.Date.Month" />  <input type="hidden" name="d" value="@Model.Date.Day" />
        <div class="formBar" ratio="#30">
    @if (!Model.isconfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <ul>
            <li>
                <div class="simplebutton">
                    <div class="r">
                        <button type="button" class="submit">
                            保存</button></div>
                </div>
            </li>
            <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>
        </ul>
    }
    </div>
</div>
</form>
